package org.concordia.wsdl.model;

import java.util.LinkedList;
import java.util.List;

/**
 * This java class represent a web service
 * @author ericzhao
 *
 */
public class WebService {

	// contains name of the web service
	private String name;
	
	// contains inputs of the web service
	private List<String> inputs;

	// contains outputs of the web service
	private List<String> outputs;
	
	//score given by evaluator
	private float score;


	public WebService() {

		// create a list to hold the web service inputs
		inputs = new LinkedList<String>();

		// create a list to hold the web service outputs
		outputs = new LinkedList<String>();
	}

	public void setName(String n) {
		name = n;
	}

	public void addInput(String s) {
		inputs.add(s);
	}

	public void addOutput(String o) {
		outputs.add(o);
	}

	public String getName() {
		return name;
	}

	public List<String> getInputs() {
		return inputs;
	}

	public List<String> getOutputs() {
		return outputs;
	}

	public float getScore() {
		return score;
	}

	public void setScore(float score) {
		this.score = score;
	}
	
	public String toString(){
		return name;
		
	}

	
}
